$(function() {
	if ( !$.cookie('ui-tabs-1') ) {
		$( "#tabs" ).tabs( {selected: 0} );
	}

	$( "#tabs" ).tabs(
		{ selected: $.cookie('ui-tabs-1') },
		{ cookie: {expires: 30} });
		$( "#accordion" ).accordion();
});
